There was a pause before Julius answered, then he withdrew his head and shut to the door.
Julius withdrew and shut the door after answering.
Julius had left the room and had forgotten to answer anything.