[RESTEASY-1006] Fix unhandled exception handling in Netty and Netty 4

Without the change, the tests just hang.