This method of the Connection class is called after a connection ends.
public void addOnDisconnect(ConnectionEventHandler handler);