added exception handling when porygon is unreachable
added exception handling when porygon is unreachable