Eliminate the process.exit in library.js