Sometime an explicit termination (```System.exit(v)```) is needed to force the exit of an application when a gate has been opened in keep mode.