Updated report_disconnect_reason callback.