Cleaning up executor object

Hoping that this addresses some windows segfault issues when we have
multiple runs within the same UI instance.