added option to exit with an warning, if there is output on STDERR