Hi
you can use
 form.close();