Added process and file cleaning prior to redeployment