Rational approach to stopping terrorism