This does all of the routines necessary for exiting a module's execution. Signed-off-by: Alek Ratzloff <alekratz@gmail.com>