Before you kill the fish for possibly no reason, do the following.
Test the water for ammonia, nitrite, nitrate and pH.
Wipe the inside of the glass down with a clean fish sponge. This removes the biofilm on the glass and the biofilm will contain lots of harmful bacteria, fungus, protozoans...