Fix loginserver crash on DB connect failure

Properly exit out of the process and also report the error which caused the connection failure. Fixes issue #68.