Connection.close() doesnt set ._conn = None anymore. Also add stubs for connection object