Hypnosis wears off on its own, usually pretty quickly. You can't be hypnotized forever unless the hypnotist that did it brings you out of it. Also any hypnotist can bring a person back from a hypnotic state.
When VanPelt and Dr. Daniel leave his building, they walk out through a set of doors marked "emergency exit only." Others enter through the same doors seconds later.