Added process.exit on connection fail.