bugfix: stop trying to write to a stderr that may not be there