After receiving the morsel, Judas leaves immediately. John adds three stark words in Greek: 'and it was night.'
The statement works perfectly well as a notice of actual nighttime, but in this Gospel darkness has carried symbolic weight from the opening chapter onward.