fix EventMachine function call sequence
Merge pull request #168 from esotericaone/master

fix EventMachine function call sequence