handle nil ex (errors printed to stdout via mock lib etc)