Only use begin..rescue block around connection and data collection