Register port file after connecting to port
Merge pull request #169 from oahner/fix-portfile-issue

Register port file after connecting to port