Solving issue 84

Closes the connection on object deletion (I thought it was automatically closed)

@teravest can you review/merge after test pass?