On the back of your IIcx, there's a small button that can be pushed in and turned. If it's in, then your Mac will stay on no matter what. It'll simply reboot if you shut down. Simply turn the knob so that it pops back out, and it'll stay off.
The button is round, and has a line down the middle. It's on the left, if you looking from the back.