mcabber-events: Don't delete $tmpfile too early