fix(restart): do not restart if a signal was sent
feat(repl): emit `repl` event
1.2.0