Cleanup logs
Fix crash when no path