Returning 0 from sendMessage method to let the main method know that everything is alright