** Fixed bug with socket disconnection