removing unused maps
adding instrumentation to assist in debugging
adding ttl to unterminated tasks