Application crashes if no port specified

Application crashes if no port specified

Fixes #36