Cleaned up Repository class, made use of Symfony's IOException