* Adding a close method for graceful shutdown

@ronkorving could you have a quick look? I will test it further with some of our tools in the next few hours.
I always wonder whats best, actually. Personally, I tend to think it should stay in because I may want to do something on that error somewhere else while still be able to deal with that specific error in-place. Better to be louder than weaker I would assume...