Add an action to clean expired shared objects (fix #618)