Send a on_receive_fields event when formspec is closed, with fields.quit...

... = "true"