Add multithreading and close connection headeer.
Add custom Exceptions to handle not passing a port or a directory.