close month implementation