Use cleanup() instead of removeListener()

Required for compatibility with SLaks/racer@97d170f.

This change is backwards-compatible, but that one isn't.