Proper Node error Handling