How to end Flask SocketIO with Crtl+C, Error 403 (Forbidden)

Solution
var socket = io.connect('http://server.com', {
    reconnection: false
});