Improved the defered disconnection code.