Fix crash due to null exception message
Fix crash when stopping the media recorder (sometimes)
Fix crash when onConnectionClosed was called on back pressed

As fragment wasn't attached to the activity, callback wasn't safe to be
called.