fixes #245: command/watch: fix a bug that Master watch process unexpectedly exits if rebuilding encounters a failure