Happens for me too. That error will come the first time you start the game, if you launch it again it should go away. Also try disconnecting your internet and then running the game it might help.
Thats mainly because of the Co-Op thing, COD5 tries to login everytime you get into the game.