Implement exception handling in android app