diff --git a/lib/mongo/networking.rb b/lib/mongo/networking.rb index 62cee62..6ec1601 100644 --- a/lib/mongo/networking.rb +++ b/lib/mongo/networking.rb @@ -137,7 +137,7 @@ module Mongo send_message_on_socket(packed_message, sock) result = receive(sock, request_id, exhaust) - rescue SystemStackError, NoMemoryError, SystemCallError => ex + rescue SystemStackError, NoMemoryError, SystemCallError, IRB::Abort => ex close raise ex ensure