Function closeGracefully has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open
closeGracefully() {
log('Received kill signal (SIGTERM), shutting down gracefully.');
if (!this._listening) {
log('Ended without any problem');
process.exit(0);