Merge pull request #401 from snowiow/master

close_all command + bugfix