Should return error code or fail task if error code of composer