Add cleaner utility

Solves #57
Please return 0 or a negative error code.