Handled exceptions for registering the stream and fetching the location