use SafeHandle to manage user32 lifecycle (fixes #1593)
Merge pull request #1610 from thoemmi/loadlibrary-safehandle

use SafeHandle to manage user32 lifecycle (fixes #1593)