gus walked over to the closet in an attempt to open it , but finding it locked , he walked over to the professors agent or assistants office and after seeing no one in it , locked the door from the inside and shut it .