Fix custom hook output and return values

# Fixing return values in a few places.
# Show stdout and stderr. Hooks might need to output info to user even if successful.