Catch signals while printing results of expressions.