Add recovery of deluge's previous state
More elegant deluge stopping in cleanup