Allow the messenger delay to be a function
Improve test robustness
Improve close implementation
Bump version to 1.2.0