Windows CE 7 Devices
When the mobile unit goes into a suspend / resume, my application has been closed.
Microsoft had changed the behavior of the suspend / resume to close any active socket connections over Wi-Fi.
To resolve this issue, you will need to update your devices with the monthly updates from Microsoft.
Below is a link to the KB article from Microsoft Support: