workaround possible memleak in glXDestroyContext by releasing context before
fix bug in handle_acquire, returned non-NULL pointer to destroyed object