Handle out-of-memory errors by splitting the words up
restart the server when a failure happens