Added error handler for ProfileHMM