kortschak's fix
lock s.kill, send done signal
Merge branch 'master' into replcrash
Merge pull request #126 from barakmich/replcrash

Temporarily fix REPL crash by locking the kill channel