add option to control whether rsession logs to stderr