refs #950, add more to printed error message on exception, remove malloc