Michael Shanks has insisted his government will not allow a repeat of the just transition failures at Grangemouth.