Use bash explicitly for the running, as sh links to dash and it has problems to kill it.