fix #144

netlib wraps IOError in NetLibDisconnect, so we need to cover this as well.