class library: Pfx causes cleanup function to be called only once

For some reason, adding the parent to the note off event in Pfx caused the cleanup function to be called twice. It seems enough to simply move the cleanup event creation to the moment after the fx node event has been returned.

This commit fixes #220