Fixes audit violations

Removes imports, logs some exceptions.