Added try catch to send method