added some code to gracefully disconnect database if errors occur (I think)
added some code to gracefully disconnect database if errors occur (I think)

sjdodge123/spaceroyale.io,sjdodge123/spaceroyale.io,sjdodge123/spaceroyale.io