Match ObjectiveC API and allow CloseWithCode reason to be nil
Merge pull request #1 from thefactory/closewithcode_nullallowed

Match ObjectiveC API and allow CloseWithCode reason to be nil