ensuring that event machine is started before using it