Implement consistency checks using dfault script API.
Allow to close a draft position.