Old courthouse buildings taken off the market by state government