Fixed deadlock in quarantine