Before you use any of your grinders upgrading your weapons, save the game and go upgrade. If the upgrade works, save the game and repeat. If the upgrade fails, turn off the Xbox 360 or go to the Dashboard. Load the game and try again. You will never break your expensive weapons again.