Changing event machine sync from next_tick to defer

defer seems to resolve the issue faced.