allocate environment monitor on the heap so it's not destryoed during deinitialization (depending on timing this can cause a crash in R)
set focus to console after load_all command
Merge remote-tracking branch: upstream/master