Fix issues cleaning up after repeating tasks.

A mass of NullPointerExceptions would be outputted when tasks were stopped. This is resolved by checking if we are still running (indicating that we did get cancelled as part of a repeating task) before telling the scheduler to pull the plug.

Ideally, the entire BungeeCord scheduler should be rewritten. It has quite a few issues which could be avoided with a new system.