added exit_form function
added exit_form function, fixed pull issue