Working on a close all module function.