I once had a humming bird stuck in my garage and couldn’t or wouldn’t (for whatever reason) fly out of the open door way.
For at least an hour it kept flying into the ceiling with only occasional rest breaks where it would lite on the bracket for the electric door.
Eventually it was exhauste...