Fixed port reuse issue.

Multiple instances can now be run at once.