Locked in school.

You are kept after school and in the middle of your detention the teacher leaves for the washroom. He then never comes back for an hour. You decide to leave the classroom and leave the school building, but then you find out the main door is locked from the inside so you are trapped. You see the janitor nearby and his door to the equipment room is open. What do you do?