Fixes greenlet leaks in DM tests