Add better error handling when removing bash_history