Use 'immediate' option to switchback to complete the .execSync() usage. Also cleans up leftover logs.