Fix killing unmanaged processes