Added res.end(); to POST /igrep/jobs
Fixed a bug of stopping the timer when there is no new jobs