custom error handling - stopping exec on parser errors