To be close to someone in a dream can mean we are looking for intimacy, or perhaps protection.

To close a door acknowledges the fact that we must make a decision to put the past behind us.