I think he killed himself and the end shot is us seeing what Emma Stone is imagining which is her father is alive and flying. Much like when Riggan is alone we get a warped reality I believe in the hospital it is the first time we ever see her in a scene by herself so I assume like daughter like father we are…