Resolves unhandled exception code in Controller constructor