AttachmentHandler rewrite and cleanup. Handler now exposes various Exceptions and provides Interface to mock or replace it