Final exit added.
Sampling now ok.
Cleanup.