added sigint signal handler and added socket reuse so it unbinds correctly to server port