Adding release call to functions

This might fix issue #1.
Merge pull request #4 from PBoudreau/issue_1-transport

Adding release call to functions
Merge branch 'master' into timeout