Added account and character saving on shutdown