Improved error handling on server start

Improved error handling on server start
Added proper error handling for 'port already in use' exceptions.