I understand that your app starts and works, only when terminating it crashes after a while, is that correct ?
Are you doing some long operations in UI or threads, without properly stopping them before going to background ?
Did you ask for any unusual or dangerous permissions, which could cause such problems, or is it just a form-like DB application ?