Closing table types before return