xbee wifi S6B not stable

Hi. I using xbee wifi S6B for my project fingerprint attendance system. It work good but the problem is it not stable. My pc receive the data from hardware. And after a few minutes it not work. I need to restart the sofware and it work but still same after a few minute.I connect my pc to xbee wifi and using a Visual Studio 2010. Can any one help me?

Try looking at how long you are holding the socket open on both ends.