improving error handling for unchecked exceptions.