check if response has been sent before sending in mvc\micro.h