More correct unbinding of handlers.