What did the skeleton say when you first arrived? Take his advice, and sleep....
House of Madness (49KB) - screenshot with colour coded doors

BTW, when you get out, the exit of the dungeon is further west.