Taking care of unexpected error code when publisher is stopped (Windows only).