check if response has been sent before sending in mvc\micro.c (#1425)