Firefox failing to run when executing the script by setting it as Scheduler job

HI All,

I have created a test script, when executed it in browsers it runs perfectly. But when set the same script as Scheduler job to run at particular time in Windows it runs in Chrome and IE but in Firefox fails to run and throwing below error.

Test Cases/Common Test Cases/Soandso FAILED because (of) Unable to open browser with url: '' (Root cause: org.openqa.selenium.WebDriverException: connection reset
Build info: version: '3.7.1', revision: '8a0099a', time: '2017-11-06T21:07:36.161Z'
System info: host: 'system_name', ip: '1.1.1.1', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_102'
Driver info: driver.version: CGeckoDriver

remote stacktrace: stack backtrace:

 0: 0x4821c4 - <no info>

 1: 0x482933 - <no info>

 2: 0x47a13a - <no info>

 3: 0x47abb0 - <no info>

 4: 0x44bb74 - <no info>

 5: 0x43026a - <no info>

 6: 0x40ba4e - <no info>

 7: 0x4119b9 - <no info>

 8: 0x6d2c89 - <no info>

 9: 0x426006 - <no info>

 10: 0x6cd490 - <no info>

 11: 0x7ffcd7f32784 - BaseThreadInitThunk)

Thanks.

Any one had similar problem as above, please let me know how can i resolve this