Added proper error messages in commands.executeTask returns