Allow closing a figure by long ID number.

Creating a figure with a type(long) figure number is allowed, so closing should be similarly allowed.