Fixed bug in get_status and also made change in terminate fixes [COGE-217].