Modes now can be removed without restart

Minor modification was needed - had to close the buffer reader