Fixed the braced exit clause for nonbraced karma parse