Added a subclass of IOException to schedule reconnects when necessary.