Added support for binding to next available open port if original port is taken.