Check if the handle is closed.