try...catch writing and reading the entity to/from disk. Should prevent further server crashes. Closes #482 and #495