Completed error handling.