fix a bug that nodejs port backend cannot exit.