Added window closing to RController
Merge remote-tracking branch 'origin/master'