Unref() object when connection is closed

Fixes #31