catch exception around thread.sleep
pass appruntime as parameter to msclient