Steps to reproduce (use attached Maven project):
1. Start your remote flume agent
2. Run the Maven project and attach to it with the debugger in your favourite IDE (I use NetBeans)
3. Quickly press x and hit Enter
Notice how the application continues to run. Press x should break out of the main loop and return from main(), indicating that the application should close. The thread holding things up is named 'Avro NettyTransceiver I/O Worker 1' .