partial fix to socket closed error

eliminated roughly half of the errors from disconnecting due to caching
issue