Also send large output via tempfiles.
Try to log exceptions.