preventing error messages from the sub thread.