The file watch that watches the error log to see if the database has successfully started or not only stops watching the error log when the database has started successfully. The file watch should be stopped when the process exits, so if it never started successfully, the file watch would be stopped.
This would prevent handles from staying open after a database doesn't start correctly, allowing Node.js to properly exit when no work is left to process.