Preventing total crash when there is no writte permission in Protege directory