Hello,
hard to say without further details.
Maybe have a look into a similar problem I had here:
http://mcuoneclipse.wordpress.com/2012/02/23/an-error-occurred-applied-debugging-rules/
but this was on a ColdFire, not Kinetis.
I suggest that you enable logging (as in shown in above post) and provide that information.
What the error message indicates me is that the target task behind the flashing failed.
I know that 10.1 is not producing much diagnostics to the console view (MCU10.2 is much better providing that information), but hopefully enable logging to the console view will give you the important hint what is going wrong.
I could speculate that your bootloader/bootloader application has locked the device, and the debugger cannot flash the part any more. For this you might need a mass erase. Just speculating.
Hope this helps,.
BK