Fixed bug, now detects if closing task that was started on other day