handling exceptions during vk api calls