Improve synchronous action exit code (fixes long delay after action exit on RH9