Fixed bug where connections were closed prematurely