Fixed bootloaders not disabling global interrupts during erase and write operations (thanks to Zoltan).