When you write code that does things with external systems, make sure that you handle errors gracefully, or at the very least, log the parameters used to call the external system when there is an error.