It is always more difficult to fight one's own failings than the power of an adversary.
Establish a closing ritual. Know when to stop working. Try to end each work day the same way, too. Straighten up your desk. Back up your computer. Make a list of what you need to do tomorrow.