better errors and start of close action