Pass the reason for the connection close to the connection close callbacks