Made minor refactoring to handle more exceptions

Made minor refactoring to handle more exceptions in a consolidated manner

1) SourceExceptions are thrown when installing a package locally
from Source fails
2) DestinationExceptions are thrown when pushing a package
to the destination fails