Add spec on new methods to close connections and fail on missing adapter and database key in config