Stop node before removing the notification file (Chun Kuan Lee)
Pull request description:
Stop node before removing the notification file to make sure the command has been terminated. After then we could removing those files safely and do not receive any permission error. (See #14446) The permission error is Windows specific, documented in python doc: >On Windows, attempting to remove a file that is in use causes an exception to be raised See https://docs.python.org/3/library/os.html#os.remove
https://github.com/bitcoin/bitcoin/pull/14465/commits/ca6d86c3221fbeab63f451e1fb901a68d2c4a1aa
Backport of Core PR14465