Node.js res.end() not firing

I need to end a request , but the res.end() refuses to work . It does not show an error or anything . And i need to end the request , since if another request comes in while the current request is being processed , the current request occurs two times , the next four times and so on . It multiplies by a factor of two at each consequent request . What may be the reason for this ?

function handler (req, res) {
console.log("Requested");
//GLOBALS.uploadReq = req;
if (req.url === '/upload' && req.method.toLowerCase() === 'post') {
// parse a file upload
//console.log();
form.uploadDir = "/var/www/newyosecrets/org_pic";

form.parse(req, function(err, fields, files) {
    //GLOBALS.uploadReq.destroy();
   req.connection.destroy();
   res.end("Ending connection");
  console.log("Checking occurence time !!");

});
req.on("end",function(){
    console.log("Request ended !! Problem is somewhere else");
});
res.on("end",function(){
    console.log("Response ended !!");
});
form.on("end",function(){
   //GLOBALS.uploadReq.destroy();
   req.connection.destroy();
   res.end();

   var z = require("myimgapi/image.js");
   var img = new z();
   img.socket = GLOBALS.socket;
   img.profSrc = GLOBALS.profPicName
   img.originalSrc = GLOBALS.orgPic;
   img.classifyWidth();


     });

form.on ('fileBegin', function(name, file){
        //Check cookie
        console.log(GLOBALS.uid);
        //Check in redis

        console.log("fileBegin:"+GLOBALS.uid);
        //rename the incoming file to the file's name
        var ext = file.name.split('.').pop();
        file.path = "/var/www/newyosecrets/org_pic" + "/" + GLOBALS.uid + "." + ((ext=="jpg" || ext=="JPG") ?"jpeg":ext);
        GLOBALS.profPicName = "/var/www/newyosecrets/profile_pic" + "/" + GLOBALS.uid + "." + ((ext=="jpg" || ext=="JPG") ?"jpeg":ext); ;
        GLOBALS.thumbPic = "/var/www/newyosecrets/thumbs/" + GLOBALS.uid + "." + ((ext=="jpg" || ext=="JPG") ?"jpeg":ext);
        GLOBALS.orgPic = "/var/www/newyosecrets/org_pic/" + GLOBALS.uid + "." + ((ext=="jpg" || ext=="JPG") ?"jpeg":ext);
        console.log("The file path is : "+file.path);
});



 //res.end(util.inspect({fields: fields, files: files}));
 }};