Added a x error handler, if other wm is running