Handling an exception.