Refactor OpenPgpServiceConnection with better callback