added monitorthread exception inclass to avoid pulling sun library