Added code to clean up temporary files for async scripts in 'rollback' and other minor changes.