My application has closed without warning