Handles client conection errors