all exceptions need to be caught and return 'internal server error' message in json