Exit with the correct status after successful deploy.
Only use text formatting on real terminals.