Apparently the game crashes when you try to hit an object that has just been deleted by the mining rod thing:
___________________________________________
############################################################################################
FATAL ERROR in
action number 1
of Mouse Event for Glob Left Button
for object objPlayer:
Unable to find any instance for object index '132188' name '<undefined>'
at gml_Object_objPlayer_Mouse_50
############################################################################################
Probably easily solvable by checking if target isn't null when mining..