Logs shutup and some cleanups.