fixes SIGNAL received error
closed tcp conexion