Added MAX_VALUE case to average_exit_time