Fixed a bug in alert handler to not break at auto_previous_resolve scenario; Improved logging. This resolves #40