Hide error messages in production

In addition, this set a connection and socket timeout on MongoDB
connections of 2 seconds. This can be adjusted via configuration.