You are in error my friend. The scriptures you quote are not the rapture but he second coming. I will show you: you have to back up to verse 37. But as in the days of Noah were, so shall also the coming of the Son of man be. 38: For as in the days that were before the flood they were eating and drinking, marrying and giving in marriage, until the day that Noah entered into the ark, 39: And knew not until the flood came, and took them all away; so shall also be the coming of the Son of man be. Then verse 40 as you mentioned.
Look closely, the bad people were taken away not the good. In the rapture the good are to be snatched up. So many people get these verses wrong including many pastors. There are other scripture, however, that does speak of the rapture.