Exceptions as ECONNREFUSED, ECONNRESET, EHOSTUNREACH and other exceptions during connection to apis are now managed. Also parsing of api's json data has been put into begin-rescue block.