run command save_all before running the shell