Add try catch to fix onDestroy of RobotApplication