Make assert handler in line with the other ones.