Refined OneDrive script

Asks programs to close before forcing them closed. Added additional
debug messages and matched case throughout program.