detect different kinds of BlockStoreException
added method to delete chain file