Error management for ShellTask