Adding a lock system per application to protect sending from multi thread
Don't print bad current time or last time