add test, handle non-200 errors, call process.exit for connection pool