Exit when yaml export is not correct