Fixed server not closing when demo was run with watch and a file changed