Fix in remote scripts, should return status and not call exit()
Merge pull request #1157 from atsareg/fix-v6r6

Fix in remote scripts