Cleanup on maintenance script
Use script_run_once() function in Gateway class