proper cleanup of resources in recompute command
Merge pull request #484 from dcapwell/closeresourcesinrecompute

proper cleanup of resources in recompute command