Removed some errors on socket closing