added synchronization for port opening
reformatting to fit phpcs
Merge pull request #89 from wick-ed/master

Added synchronisation of port opening