There should be commas around “however” in the following sentence: “Dwayne had planned to take the last flight out to Chicago. It was cancelled, however, because of bad weather.”

Yes. In that sentence, you need commas both before and after "however."