Update to gn.end() method

Now also removes event listener for the compassNeedsCalibration event.