Properly handle the close of an outdated connection.