How to close the door correctly