Added header sent exception to the output class