Fixed deferred connection closing.