A couple things:
-
Do not use serial.print() inside of an interrupt service routine. It is interrupt driven and bound to cause you problems.
-
The code shouldn't affect the bootloader. Do you have anything else connected to the arudino board?
-
If you still think your code is related to the problem, tie pin 2 (interrupt 0) to 5 V to make sure it isn't activated.