remove exception message for non-interactive session