fix sometimes blocking runtime at destruction