My MacBook Pro sleeps when I turn off external display
Try putting the monitor to sleep by pressing control+shift+⏏. This will turn off your display and should leave the computer on.

Source: http://support.apple.com/kb/ht1343