and over their hearts crept a shadow , the fear of a great danger : the end of the mark in a darkness to which gandalf was driving them , while saruman stood beside a door of escape , holding it half open so that a ray of light came through .