* 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.
Read the whole thing, but focus on the "last but not least" part: https://github.com/felixge/node-mysql/#error-handling