Using Automator, it is only possible to close the associated Problems and we would not be able to close the associated Incidents.