Handle disconnects for the non-pool connection

Otherwise we crash when sql.mit.edu disconnects us.
Don't crash if saving a message fails