Log exceptions while deploying