Throubles with boost::threadpool. Error handling.