Adding exceptions to ensure server stability.