Added missing error handling to create method.