Close form after planning