Fix for file locking problem on project deletion

This fixes #115. I successfully tested this change on Windows.

Apart from closing all processes before project deletion I also had to change the `BWFacade.endLongRunning()` method slightly to make it blocking. That is, it now waits until the process actually exited.