fixed illigeal state exception while shutting down