TEZ-1689. Exception handling for EdgeManagerPlugin. (zjffdu)

(cherry picked from commit f9588210a27bf1d142c8f1da8cd3d22b47d97e3b)