revert closing to avoid lock