Use the bright red button on the side of the window to close it. There is a glitch that if you close it as soon as stickman is there the door will disappear. If that does happen just hit the door button when it regenerates.
I know it may seem bad with the amount of scricts and sprites but i am telling you it's a good game.