Experience the same issue with MS exchange server. It has default timeout set to 10mins, and kicks me out regardless of activity (actually while i'm sending emails), which caused EOF. I think timeout can be fixed somewhere in registry or possibly there is some settings page.
[Message sent by forum member 'zuzuzu' (zubrag_at_gmail.com)]
http://forums.java.net/jive/thread.jspa?messageID=382748