Clean Up error handler by using switch case format.