CloseDoor

This bloc of code allows you to closethe subject, for the door for example (only if the subject is opened).