rename close to destroy

Cherry picked @ccamarat commit onto the current v2.0 branch. Merged to take into account changes to the close function/events that pass args through the events.

Fixes #1074