fixed socket closing when client disconnects
added 2 new tests