it crashes after trying to exit the gun editor
It works fine for me. Does it happen with more then one gun? Can you post the error message?