Fixed parameters
changed init order so file isnt locked
Added more verbose error message when no command name
Added a disconnect at the start of the intergration test