Protect dereferencing of sender here.

Could be invalid already for short-lived objects in another thread.

Should fix issue #89.