WATIR: IE browser is not responding when script is executed

When executing an WATIR script an IE instance is created and browser is
opened. After that browser stop responding and the script is not
executed completely. Please anyone give the solution for this problem.