Allow more time for the extension to request the next arrangement. 750ms was definitely too short. Test the value of 'port' before using it after a setTimeout.