Once I went to the toilet in dark, so while I closed the toilet door I of course put my fingers on that side of the door where hinges are and closed it. It hurt for quite a while. All you can do to relieve the pain is just apply pressure to your finger, works for me at least. Sit on it or something, lol.