Glitches happen, just like with any computer and software. A hard reset is the first troubleshooting step, generally. Next time, try a double soft reset. See
http://www.blackberryfaq.com/index.p..._BlackBerry%3F. Usually that will fix things and avoid a battery pull. If it the double soft reset doesn't fix the problem, then do the hard reset.