removed useless XBell calls
closed memory leak: logger now gets freed on exit