Fix resource leakage in tests and upgrade to netty 3.6.5.Final

Fix thread-leak which was caused because of missing stop() calls and upgrade to 3.6.5.Final as there are no resource leaks as you see now.