Fixed postCleanup

added comments and log