connection.py: close channels
look for keys when keyfile is not specified
default timeout -> 10sec
setblocking(0) in reconnect
expect_retval function