Fix basic example in README.md

Throw Exception from main method to avoid catching the InterruptedException in server.join().