Keeping it up

My partner can get up fine but cannot always stay up and finish during sex. I was a little upset thinking it was me but he’s actually upset about it. He does smoke which I said may not help but he’s only 23. Has anyone else come across this?