fixing server not closing connection when it's full