Operator: doOnTerminate

Like finallyDo but before emitting the terminal state instead of after.
Merge pull request #918 from benjchristensen/doOnTerminate

Operator: doOnTerminate