The same thing happened to me when I was in high school. I caught the side of my thumb with the needle. The needle broke off in my thumb with the thread still attached. Without even thinking I just pulled on the thread and pulled the broken piece of needle right out. When the bleeding stopped, I put a band-aid on it and went right back to the project at hand.
I am thankful it has not happened again since---it hurt!