Finalizer's and Temporary

Making RIO Finalizer's safe to run and cleaning up Temporary