Check if we are connecting here? That way we avoid trying to write altogether.