Dispose executor after the result has been retrieved