Make mkd_cleanup() a void function everywhere.