handle exceptions from invalid sprintf format strings being sent