Removed duplicated disconnect call.