Merge pull request #11 from mlaz/mynewt_mcumgr

Closing CBOR containers on error situations before returning.