Cleaning up results map, upon terminal state

This pull request resolves issue #23.