Revert SC_CLOSE change, this is causing deadlocks.