Convert store() calls in hooks to try/catch blocks