Nightmare is not a status move, so it can be used in conjunction with a status. (The pokemon has to be asleep for it to work, remember?)
The opponent could easily switch out. The set is also pretty much useless if they aren't asleep. With Sleep clause in effect, you'd have a hard time getting them back out. all of this also depends on hypnosis, which isn't the most reliable move.