Enhancement: Added runtime exceptions for different use cases
Fix: Fixed exception if "handle_accept()" gets "None" for
"socket.accept()"