Handle timeout errors, default timeout=None same as paramiko
+test for timeout setting