Flights from STT arrive back into the 48 states as regular domestic flights. You clear customs and immigration in STT, just like most Canadian gateways, BDA, NAS, AUA etc.
Your onnection should be fine to the extent any other 41 minute connection in ATL is OK!