catch TimeoutExpiredError thrown by ncclient.