Feature/handle close event

- Handle the SESSION_CLOSE event for outbound messages
- Added some tests
The comment is accurate, but slightly confusing. "If this is not a SESSION_CLOSE, then send options" or "Only send options if the session isn't being closed" or something would probably be better phrasing, because it matches the way the check is being performed.