Exception handling improvements
Replaced alert dialogs by alertDialogFragment