catching and raising expceptions in partitioner thread