exception catching whilst saving database

Server shouldn't shut down when it fails to save the database now.