with error handling in ember and socketstream