Add more logging and handle invalid messages
Wut
Dispose the mobile API properly