Changed form OnClosing

Stopped closing the form shutting the application