0.4.1 handling functions that throw when forming message, fixes #3