Handle unhandled errors in fs.stat that would crash the server