Handle errors in post commands gracefully.