Right now connection close handlers only take a single argument, the connection being closed.
We could extend these to also take an optional trace number and whether the connection was closed due to an exception (i.e. in the same way that Connection.CloseConnection does).