Added automatic proxy restart every 40 minutes.