Log close event (includes close reason)