events: emit cleanup

Cleanup check logic. Place vars at top. Remove PROCESS.
events: add type checks to once