Fixed potential memory leak from boost shared_ptr misuse
Fixed message processing so close message is actually passed through
Merge pull request #2 from mitchellwills/develop

Few small fixes