rescue exception in main