Added get_exit_status method