There was a bug which caused the game to crash if a used hammer was selled. Thanks to grondak for reporting this yesterday.