// if saga has finished delete existing state and possible timeouts
// if saga has just been created state has never been save and there
// is no need to delete it.
if (saga.isFinished() && !description.isStarting()) {
env.storage().delete(saga.state().getSagaId());
env.timeoutManager().cancelTimeouts(saga.state().getSagaId());
} else if (!saga.isFinished()) {
env.storage().save(saga.state());
}
}