If lseek(2) fails, make sure to clean up after ourselves before leaving (i.e.
unlocking the scoreboard, and closing the fd).