Print out an error when template writing fails and do not crash the
whole configuration if one thing goes wrong.