Xmega serial proxy: Add multithreaded error logging