Create a user with Superuser role assigned. With this user, perform some action, that will create task (Perform import from resource action or some workflow task).
Delete this user now.
Click on Server Tasks menu item in GUI. No tasks are shown (even there are several tasks in GUI with still existing owner)
idm.log provides following message
After tasks without owner are removed from repository through debug pages - GUI shows other tasks normally.