Added *nix specific X11 application error handler