Attempt to fix app closing before notification delivered.