Log the error in case we fail to close two times