Save before switching to another tasks