Error handling during deployment