Process kill fix

@fjakobs @lennartcl @mostafaeweda