added close command
changed line break from '\n\r' to '\n'