can i catch it before the the application terminates? just to get a msg to the server or something