Notify the user if a port is occupied

This also prevents the application from crashing

Fixes #42