Dereference connection on finish