Fixed a bug where Discovery timeout failed to trigger.

The exception being raised for a discovery timeout event wasn't properly checking the base exception type.