Verbose X error logging
Handle connection errors
Catch SIGINT and do a proper cleanup