Fix service crash when app dies