Closes all open figures before creating new