Make sure to close the socket's InputStream and OutputStream.
Seems to help a bit, but the issue still happens.
Replaced setWindow with setExact. Alarms still fire too early.