Exception handling for bot detection