Removing thread related exceptions.