AI0867 reported this was causing a rare hang during disconnect. Also, set the connection status to expired if the thread terminates due to exception.