Implemented command to set exec-on-exit

fixes #26