Added the property keepalive: true to disable the default browser timeout as described in the answer here
keepalive: true