Modified the initialization/finalization procedure so that whenever the module widget it linked with an application it creates an instance of modular app that wraps the entire application execution. It is placed around the comparison tags of pthreads and mpi widgets and thus ensures that modularApps are not divided by these tags into sub-modularApps, one for each log.