Fix for issue #9

I think the problem had to do with the fact that the subprocess started was actually bash, not sbt directly. So killing it without first sending EOF to sbt merely disconnected sbt.

The fix here simple closes stdin first. This tells sbt to shutdown. Then the process is killed.

Fix for issue #9 

Note that I did not test on Windows.