Use the same syntax as `appwillclose` does; and add origin info.