Added automatic USB reconnect handling