Fix 500 error

According to the logs, the cause of the error was unavailability of server antigate.com. Added catch of the error.