Left over rclone processes preventing mount from starting correctly

For some reason the leading - doesn't show on the status, despite it being in the script. I posted my script and the status next to each other to show the usage. I think the error on the status is the intended outcome as it is unable to find an existing mount to clear. that said I don't think this is even necessary as it is the left over processes rather than the mount causing the issue.

@Animosity022 what you are suggesting makes most sense, ie some kind of IO process is hanging onto the mount and causing it not to disconnect cleanly, leaving processes behind. Docker is definitely one of the causes of this, but I need to find out what else is doing it.

All this said, I do want to carry on using docker and an rclone mount, so would there be a way of checking for left over processes and clearing them, either when the mount is stopped or when it restarts?