Not able to close form with formating