Refixed in a simpler way by just closing the server connection on any stray response