Fixed Jnativehook, screenshots fixes

screenshots only taken when client window is active.
fixed Jnativehook staying in system memory after unclean close