Removed defer close connection