Send 'error' event if flow creation failed