Added beam examples.
Reset on process exit. (only if reset or resetSync has been called)