[Closes #8] done function for ending a joule.