Hide shelf and console if file is not parsable