variables not set error cleanup