title: Selenium Marionette new connections will no longer be accepted
body: <p>When i'm starting my java program i'm getting this error message: </p>
  
  <pre><code>1494797744010   geckodriver INFO    Listening on 127.0.0.1:5968
  1494797744672   geckodriver::marionette INFO    Starting browser \\?\C:\Program Files\Mozilla Firefox\firefox.exe with args ["-marionette"]
  1494797744951   addons.manager  ERROR   startup failed: [Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIFile.create]"  nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)"  location: "JS frame :: resource://gre/modules/FileUtils.jsm J::a FvialSecUrtiiplts _egrertoDri:r  r:e:s oluirncee 70://gre/modul"e s /dAadtdao:n Mnaon]a gSetra.cjks mt,r alcien:e  F165i7l:e UNtSi_lEsR_RgOeRt_DNiOrT(_)I@NrIeTsIoAuLrIcZeE:D/:/ gAre/moddduolneMsa/nFaigleerU tiisl sn.ojts mi:n7i0t i&lt;a lFiizleedU
  tils_getFile()@resource://gre/modules/FileUtils.jsm:42 &lt; validateBlocklist()@resource://gre/modules/AddonManager.jsm:671 &lt; startup()@resource://gre/modules/AddonManager.jsm:834 &lt; startup()@resource://gre/modules/AddonManager.jsm:3129 &lt; observe()@resource://gre/components/addonManager.js:65
  1494797746182   Marionette  INFO    Listening on port 50911
  JavaScript error: resource://gre/modules/AddonManager.jsm, line 2570: NS_ERROR_NOT_INITIALIZED: AddonManager is not initialized
  maj 14, 2017 11:35:46 PM org.openqa.selenium.remote.ProtocolHandshake createSession
  INFO: Detected dialect: W3C
  </code></pre>
  
  
  
  <p>While program is running it appears some new errors: </p>
  
  <pre><code>JavaScript error: resource://gre/modules/FileUtils.jsm, line 70: NS_ERROR_ILLEGAL_VALUE: Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIFile.create]
  JavaScript error: resource://app/modules/WindowsJumpLists.jsm, line 403: NS_ERROR_FILE_NOT_FOUND: Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIJumpListShortcut.app]
  JavaScript error: resource://app/modules/WindowsJumpLists.jsm, line 403: NS_ERROR_FILE_NOT_FOUND: Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIJumpListShortcut.app]
  JavaScript error: https://apis.google.com/_/scs/apps-static/_/js/k=oz.gapi.pl.LabDolPUOAM.O/m=gapi_iframes,gapi_iframes_style_common/rt=j/sv=1/d=1/ed=1/am=AQ/rs=AGLTcCNgJpGnsPOpCNGmcIvZ9rnqApDcrQ/cb=gapi.loaded_0, line 52: TypeError: a is null
  JavaScript error: https://apis.google.com/_/scs/apps-static/_/js/k=oz.gapi.pl.LabDolPUOAM.O/m=gapi_iframes,gapi_iframes_style_common/rt=j/sv=1/d=1/ed=1/am=AQ/rs=AGLTcCNgJpGnsPOpCNGmcIvZ9rnqApDcrQ/cb=gapi.loaded_0, line 52: TypeError: a is null
  </code></pre>
  
  
  
  <p>At the end im getting this information and the program stops working:</p>
  
  <pre><code>1494798016809   Marionette  INFO    New connections will no longer be accepted
  </code></pre>
  
  
  
  <p>What could be the reason for that error and how to fix it? 
  I'm using Firefox 53.0.2 and geckodriver 0.16.1</p>