add connect timeout
sync connect/disconnect
cleanup