[#53] added exception handling with redirecting