terminate in a proper way