I guess I deserved it, but can you give me some pointers on how to debug this? One thing I can think of is that our framework, where I am plugging this code in, already uses LWP & caches 5 connections using keep_alive option in LWP. I don't see how that should cause any issues, but other than that what else should I be looking at?