The halt check should occur before setting the layerset