Pass a function to the deferred __init__ that logs when cancelled