Pilot who had in-flight meltdown to be released