Fixed issues with certain types of paths being made relative.
Added a global exception handler so that issues can be logged out.