What film/TV program was set on a spaceship and...? (I can only remember the ending so have kept the title uninformative!)
Movie featuring  space crew, murders, a forbidden door and ending with a revelation