X3 Web Services Connection to database is no more available

SOLVED

We have some interfaces that import data into X3 using X3 web services.  Occasionally, the web service calls will start to fail, and the following message is generated. 

Error: Connection to database is no more available (closed)

Does anybody know what causes this, and how to prevent it?