JBTM-1633 check if the pull is closed first