Changes: * Ensure TNC PTYs are closed on error * Instead of waiting indefinitely, use patty_client_ping() to poll the status of the patty daemon to exit in a timely manner