Simplified error handling/emit