Error and completed handler added