Capture stderr (thanks @shoyer)