Fix printing of timeouts and other errors