Fixed an issue where the nonce was possibly prematurely flagged as sent. Fixes #109.