Fix request exception handling.