Separate write and attach calls

When multiple messages are sent to Skype, the script fails to attach handler as it is already attached ...