Catch the exception that might be thrown by JSON.parse due to stupid values
Modify res.send/set to do nothing when header is already sent

Also fixed the typo
Remove nodefly