Allows the application to close and decide if it can exit
the code reason to exit
if true the application must expect to be closed even against it's will
false to refuse to exit
Allows the application to close and decide if it can exit