stop socket when ezpaarse throw an error