What happens when sip ends

How are funds handled when a SIP investment ends?,