Is there a mechanism to prevent a door from closing violently?
Yes, they tend to just be called Door Closers. They have a spring and a damper (oil or pneumatic) to slow the closing. They look like this:



Taken from http://www.doorstuff.co.uk/door-closers.php