implemented shutdown with proper validations of ip, url and method
shutdown logging