Don't know if your still experiencing the problem but i fixed this problem myself. I noticed in the registry that my Mount & Blade Warband key and Napoleonic Wars key was different to my steam key, so i just changed the key in the registry to the steam key and since then i haven't lost connection.