Implement proper connection open / close