Fix potential resource leak in location listener
Fix potential account data leak