The captain actually explained that he had to stay on board because who knew if the planes were actually going to fire on it, because of the way the USA is run now.
But yeah, he could have left and then went back if they didn't blow it up. It wasn't going anywhere. Plus he said he didn't have any reason to live. He still had one living son. They didn't get along, but if you are alive then you can work on it.