This black and white film I think I saw it in 1968 or there abouts was about Ghosts living inside this Hotel and if anyone who stayed at the hotel escaped then all the ghosts would disappear. I remember right at the end this guy did finally “escape” BUT he swung open this big iron gate and sank back against it and breathed a sigh of relief only for the gate to swing back and impale him on this large iron spike. So he became a ghost and the other ghosts all stayed.
Castle of Blood (1964) http://www.imdb.com/title/tt0057993/