Moving exception handling to the child activity