You should be able to catch a more specific exception here.