return ErrBadConn

if there is a permanent network error or the connection is closed when
sending queries.
return ErrBadConn from begin transaction
send ErrBaddConn from Exec/Query only when not in transaction
Merge pull request #45 from denisenkom/badconn

ErrBadConn to signal that the connection is in bad state