Helper to deal with HANDLEs.