Fixed Conn Leak
Fixed connection validation to happen only once