Fixes error handling if process not found and callback unspecified