XNIO-235. use doPrivileged() block to shut down executor
Merge pull request #63 from doctau/XNIO-235

XNIO-235. use doPrivileged() block to shut down executor