I just unplug the hose form my mask if I have to get up at night because I don't want to mess with the seal of my mask if I take it off.
Interesting note: My humudifier smelled "scorched" one night and stopped working. Come to find out, the unit I have (M series of Resmed) has been recalled. So now I have to send it in to get a new one. It's an older machine, I think I got it in 2005. FYI.