Stop VPN Disconnecting when going to Sleep
The VPN will disconnect because your WiFi disconnects.

Therefore you would have to...


either reconnect your VPN connection when on 3G (How?)
or enable your iPhone to keep connected to WiFi (requires jailbreak)


To keep WiFi on in sleep mode you need to install KeepAwake via Cydia.

See this step-by-step guide.