Basic capturing of X server errors, see issue #1.