The engineer class is pretty much obsolete, because the sentry can't do much damage.
But, i dont get how you could accidently kill a sentry, i'm sure most of the spread from the scattergun would go towards the boss if you aimed for it, not towards the sentry, unless your aim is poor.