How do you know that it's hanging on the line you have marked? I'd suggest adding some debugging statements to make sure - just printing to a log file or standard error might help.
I'm sorry but I do not haveany experience with debugging statements can you please tell me what sort of debugging statements I might add to accomplish this outcome.