Added mopherd_cleanup running atexit, resolves #23