OnClose function extended to accept callbacks with extended connections.
Merge branch 'master' of https://github.com/trevex/golem