This is why I always save before doing anything with traps (or lock picking, or pretty much any actions by my character).