catch throwable to avoid show error when open files