Adding clean shutdown code to ocuda module.
First commit of code (starting).