Added saving after quit command