I have added following hook script

to add files of specific folder to SVN automatically, All worked fine if i don't check the check box of wait for the script to finish.
As it takes some times to add files, I wanted to ensure that commit panel is only opened when files has been added to SVN.
When this checkbox is checked I got following error message.
