I was unable to re-create the issue by running Start-Polaris and Stop-Polaris consecutively but if you happened to run Start-Polaris twice you were out of luck until restarting PowerShell as we were just creating a new instance of HttpListener right over the top of an already listening HttpListener and would throw an error.
@harikanth64 - If possible I'd love it if you could pull this code down and see if it resolves your issue before I merge it in.
I was unable to re-create the issue by running Start-Polaris and Stop-Polaris consecutively but if you happened to run Start-Polaris twice you were out of luck until restarting PowerShell as we were just creating a new instance of HttpListener right over the top of an already listening HttpListener and would throw an error.
@harikanth64 - If possible I'd love it if you could pull this code down and see if it resolves your issue before I merge it in.