Adds workaround for server.close callback in node v0.6.