Hi Nilanjan,
Errors are generally handled by underlying RestClient. So you end up with exceptions like RestClient::ResourceNotFound or RestClient::Timeout.
However, in the case of you're large view and the 'killed' message, this is probably because your Ubuntu machine is low on memory. The Linux kernel will automatically kill a process that is consuming a lot of memory and the system is running low.
You're probably running on a small VPS, so either increase the machine's memory, or add a swap file.
Cheers,
sam