Catch signals while printing the results of expressions.