Use the debugger to figure out where it's stuck and why.