Added script to prevent watch process to keep executing after session/codiad is closed