handling exception for user feedback