Improved error handling when removing stations.