Log database close and timeout events at warn level.  Allow db options to be set via config.