Cleanup esp type task implementation.