Emit messages in a new context in order to avoid unexpected errors