fixed bug into management of batch command that forward an exception