tuttleHost: better error handling when reading/writing plugins cache

fix #265